package com.Day1009;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

public class BufferedReaders {
    public static void main(String[] args) throws Exception {
        File file = new File("F:\\Java\\c.txt");
        FileReader fileReader = new FileReader(file);
        BufferedReader bufferedReader = new BufferedReader(fileReader);
        StringBuffer stringBuffer = new StringBuffer();
        String line = null;
        while ((line = bufferedReader.readLine()) != null){
            stringBuffer.append(line + "\n");
        }
        System.out.println(stringBuffer.toString());
        bufferedReader.close();
        fileReader.close();
    }
}
